﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="kmpost.aspx.cs" Inherits="LJSheng.Web.kmpost" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>激活区</title>
    <link href="/css/houtai/layout.css" rel="stylesheet" type="text/css" />
    <link href="/css/houtai/login.css" rel="stylesheet" type="text/css" />
</head>
<body class="login-bg">
    <form id="form1" runat="server">
        <div class="main">
            <div class="login-dom">
                <div class="logo text-center">
                    
                </div>
                <div class="text-big text-center logo-color">激活后不可撤销</div>
                <div class=" text-center margin-small-top logo-color text-small" style="color:red;">请认真核对机器码 </div>

                <div class="reg-wrap border">
                    <div class="reg-number border-bottom">
                        <div class="fl reg-area ">机器码</div>
                        <input type="text" class="fl reg-phone" name="jqm" id="jqm" placeholder="请输入机器码" runat="server" />
                    </div>
                    <div class="reg-number border-bottom">
                        <div class="fl reg-area ">卡&emsp;密</div>
                        <input type="text" class="fl reg-phone" name="kami" id="kami" placeholder="请输入卡密" runat="server" />
                    </div>
                    <div class="reg-number border-bottom">
                        <div class="fl reg-area ">备&emsp;注</div>
                        <input type="text" class="fl reg-phone" name="beizhu" id="beizhu" placeholder="备注" runat="server" />
                    </div>
                </div>
                <div class="margin-large-top padding-big-top">
                    <asp:Button runat="server" ID="hebt" CssClass="btn text-big" Text="立即激活" OnClick="hebt_Click" OnClientClick="return ok();" />
                </div>
                <div class="forget">
                    <a runat="server" id="ptb" href="#" target="_blank" class="forget-pwd text-small fl">普通版软件更新</a><a runat="server" id="gjb" href="#" target="_blank" class="forget-new text-small fr">高级版软件更新</a><a runat="server" id="sysm" href="#" target="_blank" style="position:fixed;margin-top: 20px;margin-left:120px;color:white;">使用说明</a>
                </div>
            </div>
            <div class="footer text-center text-small ">
                <marquee><span id="gg" runat="server" style="font-weight: bolder;font-size: 40px;color: red;">滚动广告滚动广告滚动广告滚动广告滚动广告滚动广告滚动广告</span></marquee>
            </div>
        </div>
        <div class="popupDom">
            <div class="popup  text-default">
            </div>
        </div>
        <script>
            function ok() {
                if (document.getElementById("jqm").value.length > 3 && document.getElementById("kami").value.length > 8 && document.getElementById("beizhu").value.length > 1) {
                    var r = confirm("机器码(" + document.getElementById("jqm").value+")核对无误,请确认激活");
                    if (r == true) {
                        document.getElementById("hebt").style.display = "none";
                        return true;
                    }
                    else {
                        return false;
                    }
                }
                else {
                    alert("填写的机器码/备注或卡密位数不符合!");
                    return false;
                }
            }
            function getQueryString(name) {
                let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
                let r = window.location.search.substr(1).match(reg);
                if (r != null) {
                    return unescape(r[2]);
                };
                return null;
            }
            document.getElementById("kami").value = getQueryString("kami");
            if (getQueryString("remarks").length > 8) {
                document.getElementById("hebt").value = "修改";
                var bz = getQueryString("remarks").split(' ');
                document.getElementById("jqm").value = bz[0];
                document.getElementById("beizhu").value = bz[2];
                }
        </script>
    </form>
</body>
</html>
